﻿using System;
using BinarySerialization;

namespace EditMode
{
    /// <summary>
    /// Edit time signatures.
    /// </summary>
    public enum TimeSig : uint
    {
        Quadruple = 0x03,
        Triple = 0x02,
        Duple = 0x01,
    }

    /// <summary> 
    /// Change edit time signature instruction. 
    /// </summary> 
    [Serializable]
    public class TimeSigChange
    {
        [FieldOrder(0)]
        public uint BarIndex { get; set; }

        [Ignore]
        public uint BeatIndex { get; set; }

        [FieldOrder(1)]
        public TimeSig Signature { get; set; } = TimeSig.Quadruple;
    }
}
